//
//  MixedPanelGroupTableViewCell.h
//  RSW.IOS
//
//  Created by zhaiqiuqiu on 17/1/6.
//  Copyright © 2017年 com.xtion.crm. All rights reserved.
//
#import "ExpandDynamicCell.h"

typedef NS_ENUM(NSUInteger,MixedPanelFunctionPanelType)
{
    MixedPanelFunctionPanelTypeNone = 0,
    MixedPanelFunctionPanelTypeFile = 1,
    MixedPanelFunctionPanelTypePhotoAlbum = 2,
    MixedPanelFunctionPanelTypeTakePhoto = 4,
    MixedPanelFunctionPanelTypeVoice = 8,
    MixedPanelFunctionPanelTypeRecord = 16,
    MixedPanelFunctionPanelTypePosition = 32,
};


@class MixedPanelGroupTableViewCell;

@protocol MixedPanelGroupTableViewCellDelegate <ExpandDynamicCellDelegate>

-(void)clickAddButtonOfMixedPanelGroupTableViewCell:(MixedPanelGroupTableViewCell*)cell mixedTyp:(MixedPanelFunctionPanelType)mixedType;

-(void)clickDeleteButtonOfMixedPanelGroupTableViewCell:(MixedPanelGroupTableViewCell*)cell mixedTyp:(MixedPanelFunctionPanelType)mixedType;

-(void)clickDeleteModeButtonOfMixedPanelGroupTableViewCell:(MixedPanelGroupTableViewCell*)cell atTag:(NSString*)tag mixedTyp:(MixedPanelFunctionPanelType)mixedType;

@end

@interface MixedPanelGroupTableViewCell : ExpandDynamicCell

@property(nonatomic,strong) NSString  *selectAddress;
@property(nonatomic,readonly) NSArray *selectedImagePath;
@property(nonatomic,readonly) NSArray *selectedFilePath;
@property(nonatomic,readonly) NSArray *selectedVoicePath;
@property(nonatomic,readonly) NSArray *selectedRecordPath;

-(void)addImage:(UIImage*)image withTag:(NSString*)tag;

-(void)replaceImage:(UIImage*)image atTag:(NSString*)tag;

@end


@class MixedPanelStaticGroupTableViewCell;

@protocol MixedPanelStaticGroupTableViewCelldelegate <ExpandDynamicCellDelegate>

-(void)mixedPanelStaticGroupTableViewCell:(MixedPanelStaticGroupTableViewCell*)cell clickedImageButtonTag:(NSString*)tag imageContain:(NSArray*)imageContains;

@end

@interface MixedPanelStaticGroupTableViewCell : ExpandDynamicCell

@property(nonatomic,strong) NSString *title;

@property(nonatomic,strong) NSArray *imageNames;

-(void)addImage:(UIImage*)image withTag:(NSString*)tag;

-(void)replaceImage:(UIImage*)image atTag:(NSString*)tag;

@end
